<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="description" content="新网页设计师。web标准的教程站点，推动web标准在中国的应用" />
<meta name="keywords" content="designing, with, web, standards, xhtml, css, graphic, design, layout, usability, ccessibility, w3c, w3, w3cn, ajie" />
<meta name="robots" content="all" />
<meta name="googlebot" content="all" />
<link rel="icon" type="image/x-icon" href="http://static.test.com/images/common/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="http://static.test.com/images/common/favicon.ico" />
<title>Untitled Document</title>
<style type="text/css">

</style>
</head>

<body>
<br />

<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" class="tab_msg">
  <tr>
    <td>
    
    <img id="image-test1" src="http://labjs.com/test_suite/img1.jpg?_=36451722611" width="100" hspace="5" alt="image 1" title="size: 379kb" />
    <img id="image-test2" src="http://labjs.com/test_suite/img2.jpg?_=10935221161" width="100" hspace="5" alt="image 2" title="size: 20kb" />
    <br />
    
    <div id="div-info">In - 一个轻量级的 JavaScript 颗粒化模块加载和依赖关系管理解决方案</div>
    </td>
  </tr>
</table>
<script type="text/javascript" src="http://static.test.com/js/loader.js?v=0.1" data-main="init.js?v=0.1"></script>
<script type="text/javascript">


loader.config({base:'http://static.test.com/js/', duplicates: false, debug:true});
loader.load(["module!jquery", "http://chairo.sinaapp.com/style/www.au92.com/style.min.css"], function(){
	$("#div-info").css("color", "#F00");
})
.load(['js!http://labjs.com/test_suite/testscript2.php?_=63286&delay=3'])
.load('js!http://labjs.com/test_suite/testscript3.php?_=2256010&delay=1')
.load("module!jquery", function(){
	window.setTimeout(function() {
	$("#div-info").css("color", "#FF0");
	}, 2000);
});

</script>


<!--
<script language="javascript">
function resLoader() {
	var registrys = {};
	
	function createChain()
	{
		var chain = [];
		
		function load() {
			chain.push('1');
			console.log('call load function:'+ chain.length);
		}
		
		function after() {
			chain.push('2');
			console.log('call after function:'+ chain.length);
		}
		
		return {
			load: load,
			after: after
		};
	}
	
	return {
		load: function() {
			createChain().load.apply(null, arguments);
		},
		after: function() {
			createChain().after.apply(null, arguments);
		}
	};
}

this.loader = resLoader();
loader.load();
loader.after();
</script>
-->
</body>
</html>
